package com.xltx.oss.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author liuyc
 * @ClassName AliyunOssProperties
 * @Description Alibaba OSS configuration
 * @Date 2021/12/16 14:27
 */
@Component
@ConfigurationProperties(prefix = AliyunOssProperties.PREFIX)
public class AliyunOssProperties {

    /**
     * Alibaba OSS service configuration prefix name
     */
    public static final String PREFIX = "xltx.oss";

    /**
     * accessKeyId
     */
    private String accessKey;

    /**
     * accessSecret
     */
    private String secretKey;

    /**
     * API product domain name
     */
    private String endpoint = "oss-cn-beijing.aliyuncs.com";

    /**
     * bucket
     */
    private String bucket;

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }
}
